"use strict"

/**
 * 鞍山市政府采购网爬虫
 *  
 */

var Base = require("./base");
var as_spider = new Base();
as_spider.name = "鞍山市政府采购网";
as_spider.encode = "utf-8";

as_spider.getPageUrl = function (pg) {
    return "http://www.asggzyjy.cn/page/index_" + pg + ".jspx?code=biddingNotice_purchase";
};

as_spider.getItems = function ($) {
    var items = [];
    $(".dot-1 a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.attr("title");
        item.url = "http://www.asggzyjy.cn" + e.attr("href");
        item.source = as_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = as_spider;